local JoyStick = {}
local UIUtil = require("utils.UIUtil")

function JoyStick:start()
    UIUtil.addTouchEvent(
        self.transform,
        handler(self, self.onBeginTouch),
        handler(self, self.onMoveTouch),
        handler(self, self.onEndTouch)
    )
end

function JoyStick:onBeginTouch(event)
    printDebug(event)
end

function JoyStick:onMoveTouch(event)
    printDebug(event)
end

function JoyStick:onEndTouch(event)
    printDebug(event)
end

function JoyStick:update()
end

function JoyStick:onDestroy()
end

return JoyStick
